home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Startmenu Options.xpl < prev    next >
Text File  |  1999-06-12  |  1KB  |  54 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\Start menu\Options"
  5. "NAME"="Display Options"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Show "Start" button,Taskbar and Tray context menu"
  9. "TEXT 2"="Show context menu (right-click) in Start->Programs"
  10. "DESCRIPTION 1"="If an item is disabled (not checked), Windows will either not display it or does not allow that changes are made."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  14.  
  15.  
  16. sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  17. sV1="NoTrayContextMenu"
  18. sV2="NoChangeStartMenu"
  19. SUB Plugin_Initialize
  20.  i=RegReadValue(sp&sV1) 
  21.  If IsEmpty(i) or i=0 then SetUIElement 1,true
  22.  
  23.  i=RegReadValue(sp&sV2) 
  24.  if IsEmpty(i) or i=0 then SetUIElement 2,true 
  25.  
  26. END SUB
  27.  
  28. SUB Plugin_CheckData(ElementIndex)
  29. END SUB
  30.  
  31. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  b=GetUIElement(1)
  33.  if b=true then
  34.   Call RegWriteValue(sp&sV1,0,2)
  35.  else
  36.   Call RegWriteValue(sp&sV1,1,2)
  37.  end if
  38.  
  39.  b=GetUIElement(2)
  40.  if b=true then
  41.   Call RegWriteValue(sp&sV2,0,2)
  42.  else
  43.   Call RegWriteValue(sp&sV2,1,2)
  44.  end if
  45.  
  46.  
  47.  
  48.  
  49.  Call Restart
  50. END SUB
  51.  
  52. SUB Plugin_Terminate
  53. END SUB
  54.